package com.oak.broke.model.vip.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.oak.broke.model.vip.base.PageUtil;
import com.oak.broke.model.vip.entity.VipOpenRecordEntity;
import com.oak.broke.model.vip.vo.api.VipOpenRecordVO;

/**
 * @author tanghan
 * @email broke@gmail.com
 * @date 2023-04-12 17:02:57
 */
public interface IVipOpenRecordService extends IService<VipOpenRecordEntity> {

    /**
     * 保存会员开通记录
     *
     * @param vipOpenRecord
     */
    void saveVipOpenRecord(VipOpenRecordEntity vipOpenRecord);

    /**
     * 分页查询会员开通记录
     *
     * @param userRelationCode 会员用户code
     * @param vipUserType      会员用户类型
     * @param pageNo           页数
     * @param pageSize         每页大小
     * @return
     */
    PageUtil<VipOpenRecordVO> listVipOpenRecord(String userRelationCode, String vipUserType, Integer pageNo, Integer pageSize);
}

